<template>
    <div class="carousel">
        <el-carousel trigger="click">
            <el-carousel-item v-for="(item,i) in carouselBanner" :key="i">
                <a target="_blank" :href="item.NavigateUrl || 'javascript:;'">
                    <img :src="$store.state.port.ossPath + item.FileUrl" alt="">
                </a>
            </el-carousel-item>
        </el-carousel>
    </div>
</template>

<script>
export default {
    props: ['carouselBanner'],
    data() {
        return {
            
        }
    },
    mounted() {
        console.log(this.carouselBanner)
    }
}
</script>

<style lang="less" scoped>
.carousel /deep/ .el-carousel__container{
    height: 100%;
}
.el-carousel{
    width: 1200px;
    height: 409px;
    border-radius:20px;
    margin: 20px auto 23px;
}
.el-carousel img{
    width: 100%;
    height: 100%;
}
</style>
